import { createRouter, createWebHashHistory } from "vue-router";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      redirect: "/main",
    },
    {
      path: "/main",
      component: () => import("@/views/main/main.vue"),
    },
    {
      path: "/weather30",
      component: () => import("@/views/weather30/weather30.vue"),
    },
    {
      path: "/air",
      component: () => import("@/views/air/air.vue"),
    },
    {
      path: "/indices",
      component: () => import("@/views/indices/indices.vue"),
    },
    {
      path: "/historical",
      component: () => import("@/views/historical/historical.vue"),
    },
  ],
});

export default router;
